import request from '@/utils/request'

export function pageUser(user, current, limit) {
  return request({
    url: `ucenter/user/pageUser/${current}/${limit}`,
    method: 'post',
    data: user
  })
}

export function removeByIds(ids) {
  return request({
    url: `ucenter/user/deleteByIds`,
    method: 'post',
    data: ids
  })
}

export function updateUser(user) {
  return request({
    url: `ucenter/user/updateUser`,
    method: 'post',
    data: user
  })
}

export function getUserById(id) {
  return request({
    url: `ucenter/user/getById/${id}`,
    method: 'get',
  })
}

export function saveUser(user) {
  return request({
    url: `ucenter/user/saveUser`,
    method: 'put',
    params: { ...user },
  })
}




